package com.goldgov.utils;

import java.sql.Connection;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;

public class executeSQLUtil {

	public Connection getConnection() {
		SqlSessionFactory sqlSessionFactory=BeanUtil.getBean(SqlSessionFactory.class);
		Connection connection = null;
		SqlSession sqlSession = sqlSessionFactory.openSession();
		connection = sqlSession.getConnection();
		return connection;
	}
}
